<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>注册成功</title>
    <style>
        /* 全局样式 */
        body {
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 0;
            background-color: #f4f4f4;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
        }

        /* 容器样式 */
        .success-container {
            background-color: white;
            padding: 2rem;
            border-radius: 8px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
            width: 100%;
            max-width: 400px;
            text-align: center;
        }

        /* 标题样式 */
        h2 {
            margin-bottom: 1rem;
            color: #333;
        }

        /* 段落样式 */
        p {
            font-size: 1.1rem;
            color: #555;
            margin-bottom: 1.5rem;
        }

        /* 时间戳样式 */
        #timestamp {
            font-weight: bold;
            color: #28a745;
        }

        /* 按钮样式 */
        .button-container {
            margin-top: 1rem;
        }

        button {
            display: inline-block;
            padding: 0.75rem 1.5rem;
            font-size: 1rem;
            color: white;
            background-color: #28a745;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            transition: background-color 0.3s ease;
        }

        button:hover {
            background-color: #218838;
        }

        /* 响应式设计 */
        @media (max-width: 600px) {
            h2 {
                font-size: 1.5rem;
            }

            p {
                font-size: 1rem;
            }

            button {
                font-size: 0.9rem;
                padding: 0.6rem 1.2rem;
            }
        }
    </style>
</head>
<body>
    <div class="success-container">
        <h2>注册成功</h2>
        <p>当前时间：<span id="timestamp"></span></p>
        <div class="button-container">
            <button onclick="window.location.href='/register.html'">返回首页</button>
        </div>
    </div>

    <script>
        const urlParams = new URLSearchParams(window.location.search);
        const timestamp = urlParams.get('timestamp');
        document.getElementById('timestamp').textContent = timestamp ? new Date(parseInt(timestamp)).toLocaleString() : '未知';
    </script>
</body>
</html>